# _*_ coding:utf-8 _*_
# 开发团队: Mavericks
# 开发人员：Maverick·Ming
# 开发IDE： PyCharm
#   项目名：HelloWorld
#   文件名：2.7 类型转换.py
# 开发时间：2021/3/12 19:24

# 10.类型转换,不是改变对象本身，而是新建一个对象
print("\n类型转换")
a10 = True
# a10 = None
# a10 = 11.2
# a10 = "hello"
print("a10 = ", a10)
print("a10 type is =", type(a10))
print("将a10转换int")
a10 = int(a10)
# a10 = float(a10)
# a10 = bool(a10)
# a10 = str(a10)
print("a10 = ", a10)
print("a10 type is =", type(a10))